import request from '@/utils/myrequest'

export function getList(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetList',
    method: 'get',
    kvs
  })
}

// 详情
export function getInfos(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetCheckOpportunitysConditionById',
    method: 'get',
    kvs
  })
}

// 新增
export function doAdd(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/Add',
    method: 'POST',
    kvs
  })
}

// 更新
export function doUpdate(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/Update',
    method: 'POST',
    kvs
  })
}

// 删除
export function doDelete(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/Delete',
    method: 'POST',
    kvs
  })
}

// 检测类型
export function getCheckTypeList(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetCheckTypeList',
    method: 'get',
    kvs
  })
}

// 检测逻辑点
export function getCheckPointList(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetCheckPointList',
    method: 'get',
    kvs
  })
}

export function getCheckAreaList(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetCheckAreaList',
    method: 'get',
    kvs
  })
}

// 时机类型
export function getOpportunitysTypeList(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetOpportunitysType',
    method: 'get',
    kvs
  })
}

// 检测方式
export function getCheckWayList(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetCheckWay',
    method: 'get',
    kvs
  })
}

// 点检时机
export function getOpportunityNameId(kvs) {
  return request({
    url: '/cms/CheckOpportunitys/GetOpportunityNameId',
    method: 'get',
    kvs
  })
}
